package com.mcxx.modules.miniSalvation.order.service.write;

import cn.hutool.core.date.DateField;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil;
import com.mcxx.common.exception.BizException;
import com.mcxx.modules.base.utils.QueryParamUtil;
import com.mcxx.modules.filemanage.easypoi.util.ExportExcelService;
import com.mcxx.modules.filemanage.file.service.FileService;
import com.mcxx.modules.miniSalvation.family.entity.FamilyMemberEntity;
import com.mcxx.modules.miniSalvation.family.service.read.FamilyMemberReadService;
import com.mcxx.modules.miniSalvation.fundpay.service.read.FundPayReadService;
import com.mcxx.modules.miniSalvation.order.dao.read.OrderCareLinkReadDao;
import com.mcxx.modules.miniSalvation.order.dao.write.OrderCareLinkWriteDao;
import com.mcxx.modules.miniSalvation.order.dao.write.OrderCaregiversWriteDao;
import com.mcxx.modules.miniSalvation.order.dao.write.OrderCertWriteDao;
import com.mcxx.modules.miniSalvation.order.dao.write.OrderSuspendCareWriteDao;
import com.mcxx.modules.miniSalvation.order.dto.OrderCareLinkExcelDTO;
import com.mcxx.modules.miniSalvation.order.dto.OrderCaregiversDTO;
import com.mcxx.modules.miniSalvation.order.entity.OrderCareLinkEntity;
import com.mcxx.modules.miniSalvation.order.entity.OrderCaregiversEntity;
import com.mcxx.modules.miniSalvation.order.entity.OrderSuspendCareEntity;
import com.mcxx.modules.miniSalvation.order.param.CaregiverParam;
import com.mcxx.modules.miniSalvation.order.service.read.OrderCareLinkReadService;
import com.mcxx.modules.miniSalvation.order.service.read.OrderCaregiversReadService;
import com.mcxx.modules.miniSalvation.order.service.read.OrderCertReadService;
import com.mcxx.modules.system.entity.TaskExportEntity;
import com.mcxx.modules.system.service.write.TaskExportWriteService;
import com.mcxx.redis.client.RedisClusterUtils;
import com.mcxx.util.Constant;
import com.mcxx.util.FailureCode;
import com.yinhai.ta404.component.audit.vo.ExcelInfo;
import com.yinhai.ta404.core.security.vo.UserAccountVo;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

@Service
@TaTransactional
public class OrderSuspendCareWriteService {
    private final static Logger logger = LoggerFactory.getLogger(OrderSuspendCareWriteService.class);

    @Autowired
    private OrderSuspendCareWriteDao orderCaregiversWriteDao;



    public int insertIgnoreNull(OrderSuspendCareEntity orderSuspendCareEntity) {
    	return orderCaregiversWriteDao.insertIgnoreNull(orderSuspendCareEntity);
    }



    public int updateIgnoreNull(OrderSuspendCareEntity orderSuspendCareEntity) {
    	return orderCaregiversWriteDao.updateIgnoreNull(orderSuspendCareEntity);
    }


}
